public class Text { 

	public String textType { get; set; }
	public String value { get; set; }
	public String tagName { get; set; }
	
	public Text(String textString) {
		value = textString;
		textType = 'text';
	}
	public Text() {
	}
	
	public String getTextType() {
		return textType;
	}

	public String ToAPP() {
		String out = '<' + tagName;
		if (textType != null) {
			out += ' type="' + textType + '"';
		}
		out += '>' + value + '</' + tagName + '>\n';
		return out;
	}
	
  	public Text setTextType(String atype) {
  		textType = atype;
  		return this;
  	}
  	
  	public String getValueElement() {
  		return value;
  	}
  	
  	public Text setValueElement(String value) {
  		this.value = value;
  		return this;
  	}
  	
  	public String getValue() {
  		return value;
  	}
  	
  	public Text setValue(String value) {
  		this.value = value;
  		return this;
  	}
  
  	public void setTagName(String tn) {
  		tagName = tn;
  	}
  	
  /**
   * Return the wrapped value
   * @return The text value wrapped in a xhtml:div
   */
  	public String getWrappedValue() {
  		return '<xhtml:div>' + value + '</xhtml:div>';
  	}
  
  /**
   * Set the wrapped value
   * @param wrappedValue The text value wrapped in a xhtml:div
   */
  	//Text setWrappedValue(String wrappedValue);
  
}